[SOLVED] Using xss | 您所在的位置:网站首页 › i3 lock › [SOLVED] Using xss |
I am now using xss-lock and i3lock to lock my screen. In ~/.i3/config, I have exec --no-startup-id xss-lock -- i3lock -n -i ~/.i3/lock-screen.pngto run xss-lock with i3lock when starting i3. In /etc/acpid/handler.sh, I configured acpid to run loginctl lock-sessionswhen lid is closed. This way, the laptop screen will be locked when either:* Keyboard and mouse being idle for some time (configurable by xset)* Lid is closed So far so good. However, sometimes I want to lock screen manually when lid is open. So I add this to ~/.i3/config: bindsym Control+Mod1+l exec --no-startup-id i3lock -d -i ~/.i3/lock-screen.pngThe result of this is, when pressing "Control + Mod1 + L", screen will be locked twice. That is to say, I have to type my password twice to unlock. Obviously, I can bind "Control + Mod1 + L" to "sudo loginctl lock-sessions" to avoid typing passwords twice, but using "sudo" to lock my own session seems "unneat". Does anyone know a proper way to do this? Thanks. Last edited by wzyboy (2014-01-20 15:32:45) |
今日新闻 |
推荐新闻 |
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 |